package com.hymall.service.admin;

import com.hymall.bean.MarketCoupon;
import com.hymall.bean.MarketCouponUser;
import com.hymall.bean.common.BasePageInfo;
import com.hymall.bean.common.CommonData;
import com.hymall.bean.vo.WxCouponVo;

/**
 * @author 长平居士 - rolfcui@outlook.com
 * @description 推广管理 -> 优惠券管理 服务接口
 * @date 2022/7/17 10:16
 */
public interface CouponService {
    CommonData<MarketCoupon> query(String name, Short type, Short status, BasePageInfo info);

    void insert(MarketCoupon marketCoupon);

    void update(MarketCoupon marketCoupon);

    void delete(MarketCoupon couponItem);

    MarketCoupon read(Integer id);

    CommonData<MarketCouponUser> listuser(Integer couponId, Integer userId, Short status, BasePageInfo info);

    //重写 -yyb
    int insert2(MarketCoupon couponItem);

    //重写 -yyb
    int update2(MarketCoupon couponItem);

    CommonData<MarketCoupon> query2(String name, Short type, Short status, BasePageInfo info);
}
